package com.jinmdz.fmis.mapper.base;

import com.jinmdz.fmis.mapper.annotation.MyColumn;

import java.io.Serializable;
import java.util.Date;

/**
 * Entity基类
 *
 * @author LiCongLu
 * @date 2019-12-16 08:47
 */
public class BaseEntity implements Serializable {
    /**
     * 主键
     */
    @MyColumn(name = "id", value = "主键", required = true)
    private Integer id;

    /**
     * 删除标记
     */
    @MyColumn(name = "deleted", value = "删除标记")
    private Integer deleted;

    /**
     * 殡仪馆代码
     */
    @MyColumn(value = "funeralParlourCode", name = "funeral_parlour_code", comment = "殡仪馆代码", required = true)
    private String funeralParlourCode;


    /**
     * 创建用户外键
     */
    @MyColumn(name = "createUserId", value = "创建用户外键", required = true)
    private Integer createUserId;

    /**
     * 创建时间
     */
    @MyColumn(name = "gmtCreate", value = "创建时间")
    private Date gmtCreate;

    /**
     * 不可修改
     */
    @MyColumn(name = "unmodified", value = "不可修改")
    private Integer unmodified;

    /**
     * 修改用户外键
     */
    @MyColumn(name = "modifiedUserId", value = "修改用户外键", required = true)
    private Integer modifiedUserId;

    /**
     * 修改时间
     */
    @MyColumn(name = "gmtModified", value = "修改时间")
    private Date gmtModified;

    /**
     * 数据版本号
     */
    @MyColumn(name = "version", value = "数据版本号")
    private Long version;

    public Integer getId() {
        return id;
    }

    public BaseEntity setId(Integer id) {
        this.id = id;
        return this;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public BaseEntity setDeleted(Integer deleted) {
        this.deleted = deleted;
        return this;
    }

    public String getFuneralParlourCode() {
        return funeralParlourCode;
    }

    public BaseEntity setFuneralParlourCode(String funeralParlourCode) {
        this.funeralParlourCode = funeralParlourCode;
        return this;
    }

    public Integer getCreateUserId() {
        return createUserId;
    }

    public BaseEntity setCreateUserId(Integer createUserId) {
        this.createUserId = createUserId;
        return this;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public BaseEntity setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
        return this;
    }

    public Integer getUnmodified() {
        return unmodified;
    }

    public BaseEntity setUnmodified(Integer unmodified) {
        this.unmodified = unmodified;
        return this;
    }

    public Integer getModifiedUserId() {
        return modifiedUserId;
    }

    public BaseEntity setModifiedUserId(Integer modifiedUserId) {
        this.modifiedUserId = modifiedUserId;
        return this;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public BaseEntity setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
        return this;
    }

    public Long getVersion() {
        return version;
    }

    public BaseEntity setVersion(Long version) {
        this.version = version;
        return this;
    }
}
